package com.situ.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 区域信息
 */

@Getter
@Setter
@TableName("t_cn_region_info")
public class RegionInfo {
    @TableId(type = IdType.AUTO)
    @TableField("CRI_ID")
    private Integer id; //区域id

    @TableField("CRI_CODE")
    private String code; //区域编码

    @TableField("CRI_NAME")
    private String name; //区域名称

    @TableField("CRI_SHORT_NAME")
    private String shortName; //区域简称

    @TableField("CRI_PARENT_ID")
    private Integer parentId; //父级区域id

    @TableField("CRI_SUPERIOR_CODE")
    private String superiorCode; //上级区域编码

    @TableField("CRI_LNG")
    private String lng; //经度

    @TableField("CRI_LAT")
    private String lat; //纬度

    @TableField("CRI_SORT")
    private Integer sort; //排序

    @TableField("CRI_MEMO")
    private String memo; //备注

    @TableField("CRI_DATA_STATE")
    private Integer dataState; //数据状态

    @TableField("CRI_GMT_CREATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate; //创建时间

    @TableField("CRI_GMT_MODIFIED")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified; //修改时间

    @TableField("CRI_TENANT_ID")
    private String tenantId; //租户id

    @TableField("CRI_LEVEL")
    private Integer level; //区域等级
}
